function checkInsert(){
	
 var community=document.getElementById("community");
 var roomnum=document.getElementById("roomnum");
 var hallnum=document.getElementById("hallnum");
 var toilnetnum=document.getElementById("toilnetnum");
 var area=document.getElementById("area");
 var price=document.getElementById("price");

 
 /*小区地址非空判断*/
 if(community.value=="")
 {
  var msg= document.getElementById("community_msg");
  msg.style.color="#ff0000";
  msg.innerText="*小区地址不得为空";
  return false;
 }
 else{
	 var msg= document.getElementById("community_msg");
     msg.style.color="#009944";
     msg.innerText="*输入正确";
	 
 }
 /*户型非空判断*/
 if(roomnum.value==""||hallnum.value==""||toilnetnum.value=="")
 {
   var msg= document.getElementById("apartment_msg");
  msg.style.color="#ff0000";
  msg.innerText="*户型不得为空";
  return false;
 }else if(!(/^\d+$/.test(roomnum.value)&&/^\d+$/.test(hallnum.value)&&/^\d+$/.test(toilnetnum.value)))
 {
	 var msg= document.getElementById("apartment_msg");
	 msg.style.color="#ff0000";
	 msg.innerText="*户型输入应为正整数";
	 return false;
 }else if(roomnum.value=="0"||hallnum.value=="0"||toilnetnum.value=="0")
 {
	   var msg= document.getElementById("apartment_msg");
	  msg.style.color="#ff0000";
	  msg.innerText="*户型不得为0";
	  return false;
	 }
 else{
 	 var msg= document.getElementById("apartment_msg");
     msg.style.color="#009944";
     msg.innerText="*输入正确";
	 
 }
 /*面积非空判断*/
  if(area.value=="")
 {
  var msg= document.getElementById("area_msg");
  msg.style.color="#ff0000";
  msg.innerText="*面积不得为空";
  return false;
 }
  else if(!(/^\d+$/.test(area.value)))
 {
	  var msg= document.getElementById("area_msg");
	  msg.style.color="#ff0000";
	  msg.innerText="*面积应为正整数";
	  return false;
 }
 else{
	 var msg= document.getElementById("area_msg");
     msg.style.color="#009944";
     msg.innerText="*输入正确";
	
 }
 /*售价非空判断*/
  if(price.value=="")
 {
  var msg= document.getElementById("price_msg");
  msg.style.color="#ff0000";
  msg.innerText="*售价不得为空";
  return false;
 }
 else if(!(/^\d+$/.test(price.value)))
 {
	  var msg= document.getElementById("price_msg");
	  msg.style.color="#ff0000";
	  msg.innerText="*售价应为正整数";
	  return false;
 }
 else{
	 var msg= document.getElementById("price_msg");
     msg.style.color="#009944";
     msg.innerText="*输入正确";
     return true;
 }
  
}